package it.univaq.di.helpdesk.business.common.impl.ibatis;

import com.ibatis.sqlmap.client.SqlMapClient;

import it.univaq.di.helpdesk.business.common.DeviceService;
import it.univaq.di.helpdesk.business.common.FaqService;
import it.univaq.di.helpdesk.business.common.HelpDeskServiceFactory;
import it.univaq.di.helpdesk.business.common.OfficeService;
import it.univaq.di.helpdesk.business.common.UserService;
import it.univaq.di.helpdesk.business.common.TicketService;

public class IBATISHelpDeskServiceFactory extends HelpDeskServiceFactory {
	private SqlMapClient sqlMap;
	
	public IBATISHelpDeskServiceFactory(SqlMapClient sqlMap) {
		super();
		this.sqlMap = sqlMap;
	}

	@Override
	public UserService getUserService() {
		return new IBATISUserService(sqlMap);
	}

	@Override
	public FaqService getFaqService() {
		return new IBATISFaqService(sqlMap);
	}

	@Override
	public TicketService getTicketService() {

		return new IBATISTicketService(sqlMap);
	}

	@Override
	public OfficeService getOfficeService() {
		return new IBATISOfficeService(sqlMap);
	}

	@Override
	public DeviceService getDeviceService() {
		return new IBATISDeviceService(sqlMap);
	}
	
}
